package huoye.shops.base;

import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.support.annotation.NonNull;
import android.util.DisplayMetrics;
import android.view.View;

import huoye.shops.R;


public abstract class BaseCustomDialog extends Dialog implements View.OnClickListener {

    public BaseCustomDialog(@NonNull Context context) {
        super(context, R.style.CustomDialog);
        if (layoutResID() != 0) {
            setContentView(layoutResID());
        }
        initUI();

    }

    public BaseCustomDialog(@NonNull Context context, int themeResId) {
        super(context, themeResId);
        initUI();
    }

    public abstract int layoutResID();

    public abstract void initUI();

}
